import { createStore } from "vuex";
import createPersistedState from "vuex-persistedstate";
import user from "./user";
import category from "./category";
import cart from "./cart";

export default createStore({
  modules: {
    user: user,
    category: category,
    cart: cart,
  },
  plugins: [
    createPersistedState({
      key: "test",
      paths: ["user", "cart"],
    }),
  ],
});
